package iuhao.common.utils;

import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;

/**
 * Created by Evan on 2017-08-11.
 */
public final class HttpUtils {

    /**
     * @param accessToken
     * @param clientType
     * @return
     */
    public static HttpHeaders getHttpHeaders(String accessToken, String clientType) {
        HttpHeaders headers = new HttpHeaders();
        headers.set("accessToken", accessToken);
        headers.set("clientType", clientType);
        headers.setContentType(MediaType.APPLICATION_JSON_UTF8);
        return headers;
    }

}
